Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRSetViewCenter

You can use the QTVRSetViewCenter function to set the view center of a QuickTime VR movie.

OSErr QTVRSetViewCenter (
                     QTVRInstance qtvr,
                     const QTVRFloatPoint *viewCenter);
qtvr
An instance of a QuickTime VR movie.
viewCenter
A pointer to a QTVRFloatPoint structure that contains the desired view center of the specified movie.
function result
A result code.

DESCRIPTION

The QTVRSetViewCenter function sets the view center of the QuickTime VR movie specified by the qtvr parameter to the fixed point specified by the viewCenter parameter. That point is constrained by the current field of view of the movie. The values you pass in the QTVRFloatPoint structure are adjusted so that the magnified area does not show anything outside the view.

If the kQTVRTranslation control setting is disabled, the QTVRSetViewCenter function returns the result code constraintReachedErr and doesn't change the current view center.

SPECIAL CONSIDERATIONS

QTVRSetViewCenter is valid only for object nodes.

SEE ALSO

Use QTVRGetViewCenter [link] to get the view center of a movie.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |